<?php

namespace  Helper;

class Reg
{
    private static $instance;
    private  $data;

    public static function getInstance(){
        if(self::$instance){
            return self::$instance;
        }else{
            self::$instance = new self();
            return  self::$instance;
        }
    }


    public function set($key ,$value){

      $this->data[$key] =$value;
    }

    public function get($key){

        return  $this->data[$key];
    }
}